package com.ibm.cognos.imt.fm

import groovy.util.slurpersupport.NodeChild
/**
 * Created by eric on 8/21/2014.
 */
class QuerySubject {
    String name;
    List<QueryItem> queryItems = new ArrayList<>()

    QuerySubject(NodeChild root) {
        def nameNode = root.name.findAll{
            it.@locale == 'en'
        }
        name = nameNode[0].text()
        root.queryItem.each{
            def queryItem = new QueryItem(it)
            queryItems << queryItem
        }
    }
}
